package com.css.zfzx.sjcj.modules.drill.Entity;


import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;

/**
 * @CreateDate: 2021/1/18 10:33
 * @Version: 1.0
 **/
@Entity
@Table(name = "qh_y18", schema = "base", catalog = "")
public class QhY18Entity {
    private String id;
    @Excel(name = "场地类型",orderNum = "1")
    private String siteType;
    private String drillId;
    private String isValid;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "site_type")
    public String getSiteType() {
        return siteType;
    }

    public void setSiteType(String siteType) {
        this.siteType = siteType;
    }

    @Basic
    @Column(name = "drill_id")
    public String getDrillId() {
        return drillId;
    }

    public void setDrillId(String drillId) {
        this.drillId = drillId;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QhY18Entity that = (QhY18Entity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(siteType, that.siteType) &&
                Objects.equals(drillId, that.drillId) &&
                Objects.equals(isValid, that.isValid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, siteType, drillId, isValid);
    }
}
